﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Palsta.Core.data;

namespace Palsta.Core.function
{
    class Xslt_string : XsltFunction
    {
        public FieldType GetReturnType()
        {
            return FieldType.String;
        }

        public Field Execute(Field[] args)
        {
            if (args.Length != 1) return null;

            StringField f = new StringField(args[0].GetStringValue());
            return f;
        }
    }
}
